package com.ljxt.dt.util.xhq.test;

import jdk.nashorn.internal.runtime.linker.LinkerCallSite;

import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;

/**
 * @author 徐浩钦
 * @version 1.0.0
 * @date 2020/5/17 14:00
 * @copyright 老九学堂T11
 */
public class ContinuousTableMapping {

    // 思路分析
    // 运行的 sql 语句
    // 需要的参数
    // 得到的结果集合
    // 父类的对象
    // 结果下的连表查询对象

    String sql;

    List<Object> parameter;

    ArrayList<LinkedHashMap<String,Object>> content;

    ContinuousTableMapping father;

    List<ContinuousTableMapping> childLists = new ArrayList<>();

    public ArrayList<ArrayList<LinkedHashMap<String,Object>>> get(){
        ArrayList<ArrayList<LinkedHashMap<String,Object>>> arrayLists = new ArrayList<>();
        arrayLists.add(this.getContent());



        return null;
    }

    public String getSql() {
        return sql;
    }

    public void setSql(String sql) {
        this.sql = sql;
    }

    public List<Object> getParameter() {
        return parameter;
    }

    public void setParameter(List<Object> parameter) {
        this.parameter = parameter;
    }

    public ArrayList<LinkedHashMap<String, Object>> getContent() {
        return content;
    }

    public void setContent(ArrayList<LinkedHashMap<String, Object>> content) {
        this.content = content;
    }

    public ContinuousTableMapping getFather() {
        return father;
    }

    @Override
    public String toString() {
        return "ContinuousTableMapping{" +
//                "sql='" + sql + '\'' +
//                ", parameter=" + parameter +
                ", content=" + content +
                ", childLists=" + childLists +
                '}'+"\n";
    }

    public void setFather(ContinuousTableMapping father) {
        this.father = father;
    }

    public List<ContinuousTableMapping> getChildLists() {
        return childLists;
    }

    public void setChildLists(List<ContinuousTableMapping> childLists) {
        this.childLists = childLists;
    }
}
